package com.main.tripplanner.service;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

import com.main.tripplanner.persistent.PersistentEntity;

abstract public class AbstractService {
	
	public <T extends PersistentEntity> List<Integer> getEntityIds(Set<T> entities) {
		List<Integer> entityIds = new ArrayList<Integer>();
		for (T entity : entities) {
			entityIds.add(entity.getId());
		}
		return entityIds;
	}
	

}
